package com.sz.app.edi.constants;

import com.sz.common.base.exception.ErrorCode;

/**
 * Function: EdiErrorCodes. <br>
 * Date: 2017年07月05日 9:07 <br>
 * Author: wentao.chang
 *
 * @author wentao.chang
 */
public interface EdiErrorCodes {

    ErrorCode ERROR_ARGUMENT = new ErrorCode(100001, "error.argument");
    ErrorCode ERROR_ARGUMENT_EMPTY = new ErrorCode(100002, "error.argument.empty");

    //---------------Token ----------------------------

    ErrorCode ERROR_EDI_TOKEN_NOT_VALID = new ErrorCode(200000, "error.edi.token.notvalid");
    ErrorCode ERROR_EDI_TOKEN_EXPIRED = new ErrorCode(200001, "error.edi.token.expired");
    ErrorCode ERROR_EDI_USER_VALID = new ErrorCode(200002, "error.edi.user.notvalid");
    ErrorCode ERROR_EDI_JSON_VALID = new ErrorCode(200003, "error.edi.json.notvalid");


    ErrorCode ERROR_EDI_ACCOUNT_NOTMATCH = new ErrorCode(300000, "error.edi.account.notmatch");
    ErrorCode ERROR_EDI_APIKEY_SECURITYKEY_NOTMATCH = new ErrorCode(300001, "error.edi.keys.notmatch");
    ErrorCode ERROR_EDI_IP_NOT_ON_WHITE_LIST = new ErrorCode(300003, "error.edi.ip.not.on.white.list");
    ErrorCode ERROR_EDI_NO_PERMISSION = new ErrorCode(300004, "error.edi.no.permission");


    //---------------订单区 start-----------------------

    ErrorCode ERROR_EDI_ORD_TRACKING_SYN_COMPANY_NOT_FOUND = new ErrorCode(400001, "error.edi.syn.company.not.found");
    ErrorCode ERROR_EDI_ORD_TRACKING_STATUS_ERROR = new ErrorCode(400002, "error.edi.ord.tracking.status.error");
    ErrorCode ERROR_EDI_ORD_TRACKING_CODE_ERROR = new ErrorCode(400003, "error.edi.ord.tracking.code.error");
    ErrorCode ERROR_EDI_ORD_TRACKING_SUBWAYBILLNO_ERROR = new ErrorCode(400004, "error.edi.ord.tracking.suborderno.error");
    ErrorCode ERROR_EDI_ORD_WAYBILLNO_ERROR = new ErrorCode(400005, "error_edi_ord_waybillno_error");
    //---------------订单区 end-----------------------


    //---------------发送 异常start---------------------

    ErrorCode ERROR_EMAIL_ADDRESS_NOT_FOUND = new ErrorCode(500001, "error.email.address.not.found");
    ErrorCode ERROR_EMAIL_CONNECT_ERROR = new ErrorCode(500002, "error.email.connect.error");
    ErrorCode ERROR_EMAIL_AUTHENTICATION_ERROR = new ErrorCode(50003, "error.email.authentication.error");
    ErrorCode ERROR_EMAIL_CONFIG_ERROR = new ErrorCode(50004, "error.email.config.error");
    ErrorCode ERROR_EMAIL_UNKNOWN_ERROR = new ErrorCode(50005, "error.email.unknown.error");
    ErrorCode ERROR_EMAIL_DATA_ERROR = new ErrorCode(50006, "error.email.data.error");

}
